home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Sprite 1984 - 1993
/
Sprite 1984 - 1993.iso
/
src
/
lib
/
c
/
sync
/
RCS
/
Sync_SlowLock.c,v
< prev
next >
Wrap
Text File
|
1988-07-25
|
2KB
|
117 lines
head 1.3;
access ;
symbols ;
locks ; strict;
comment @ * @;
1.3
date 88.07.25.11.12.00; author ouster; state Exp;
branches ;
next 1.2;
1.2
date 88.06.21.11.07.49; author ouster; state Exp;
branches ;
next 1.1;
1.1
date 88.06.19.14.34.02; author ouster; state Exp;
branches ;
next ;
desc
@@
1.3
log
@Lint.
@
text
@/*
* Sync_SlowLock.c --
*
* Source code for the Sync_SlowLock library procedure.
*
* Copyright 1988 Regents of the University of California
* Permission to use, copy, modify, and distribute this
* software and its documentation for any purpose and without
* fee is hereby granted, provided that the above copyright
* notice appear in all copies. The University of California
* makes no representations about the suitability of this
* software for any purpose. It is provided "as is" without
* express or implied warranty.
*/
#ifndef lint
static char rcsid[] = "$Header: Sync_SlowLock.c,v 1.2 88/06/21 11:07:49 ouster Exp $ SPRITE (Berkeley)";
#endif not lint
#include <sprite.h>
#include <status.h>
#include <stdio.h>
#include <sync.h>
/*
* ----------------------------------------------------------------------------
*
* Sync_SlowLock --
*
* Aquire a lock. This is the second level lock routine. Sync_GetLock
* has already been called and it discovered that the lock is already
* held by someone else. This routine performs the system call to
* go into the kernel and go through the slower locking procedure.
*
* Results:
* SUCCESS.
*
* Side effects:
* Lock aquired on exit.
*
* ----------------------------------------------------------------------------
*/
ReturnStatus
Sync_SlowLock(lockPtr)
Sync_Lock *lockPtr;
{
ReturnStatus status;
do {
status = Sync_SlowLockStub(lockPtr);
} while (status == GEN_ABORTED_BY_SIGNAL);
if (status != SUCCESS) {
panic("Sync_SlowLock: Could not aquire lock\n");
}
return(SUCCESS);
}
@
1.2
log
@Include status.h: it's needed.
@
text
@d17 1
a17 1
static char rcsid[] = "$Header: Sync_SlowLock.c,v 1.1 88/06/19 14:34:02 ouster Exp $ SPRITE (Berkeley)";
d22 1
@
1.1
log
@Initial revision
@
text
@d17 1
a17 1
static char rcsid[] = "$Header: proto.c,v 1.2 88/03/11 08:39:08 ouster Exp $ SPRITE (Berkeley)";
d21 1
a22 1
#include <sys.h>
@